package com.letoken.platform.repo.app.res.config;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author letokenlabs
 * @date 2022/11/25$
 */
@Data
@ApiModel(value = "查询闪兑记录返回对象", description = "查询闪兑记录返回对象")
public class QueryHistoryRes {

    @ApiModelProperty(name = "orderId", value = "闪兑订单号")
    private String orderId;

    @ApiModelProperty(name = "fromType", value = "支付币种Id")
    private Integer fromType;

    @ApiModelProperty(name = "fromType", value = "支付币种")
    private String fromTypeName;

    @ApiModelProperty(name = "fromAmount", value = "支付数量")
    private BigDecimal fromAmount;

    @ApiModelProperty(name = "toType", value = "接收币种Id")
    private Integer toType;
    @ApiModelProperty(name = "toType", value = "接收币种")
    private String toTypeName;

    @ApiModelProperty(name = "fromAmount", value = "接收数量")
    private BigDecimal toAmount;

    @ApiModelProperty(name = "status", value = "订单状态（0成功1失败）")
    private Integer status;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private LocalDateTime createTime;


}
